// 导入路由的,两种模式的
var web = require('./web');
var api = require('./api');
// var express = require('express');

// var groupController = require("../../app/controllers/user/groupController");

module.exports = function (app) {

  // var newApp = express();

  // if(newApp == app){
  // 	console.log("ok");
  // }else{
  // 	console.log("error");
  // }
  
	//router namespace
  app.use('/', web());
  app.use('/api',api());

  // app.use('/', groupController.init(app));
}